// Place your Spring DSL code here
beans = {
    doListingExpiredTimerTask(org.springframework.scheduling.timer.MethodInvokingTimerTaskFactoryBean){
        targetObject = ref('listingService')
        targetMethod = 'doListingExpired'
    }

    doListingExpiredScheduledTimerTask(org.springframework.scheduling.timer.ScheduledTimerTask){
        delay = 30000
        period = 30000
        timerTask = ref('doListingExpiredTimerTask')
    }

    timerFactory(org.springframework.scheduling.timer.TimerFactoryBean){
        scheduledTimerTasks = [ref('doListingExpiredScheduledTimerTask')]
    }
}
